local sk__hufu = fk.CreateSkill {

  name = "sk__hufu",

  tags = {},

}



sk__hufu:addEffect("active", {
  name = "sk__hufu",
  anim_type = "control",
  card_num = 0,
  target_num = 1,
  prompt = "#sk__hufu",
  can_use = function(self, player)
    return player:usedSkillTimes(sk__hufu.name, Player.HistoryPhase) == 0
  end,
  card_filter = Util.FalseFunc,
  target_filter = function(self, player, to_select, selected, selected_cards)
    return #selected == 0 and to_select ~= player and #to_select:getCardIds("e") > 0
  end,
  on_use = function(self, room, effect)
    local target = effect.tos[1]
    local n = #target:getCardIds("e")
    room:askForDiscard(target, n, n, true, sk__hufu.name, false)
  end,
})

return sk__hufu
